<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #wrap {
            position: relative;
            width: 500px;
            height: 600px;
            border: 1px solid #eee;
            border-radius: 3px;
            margin: 20px auto;
        }
        .scroll {
            position: absolute;
            top: 0;
            right: 0;
            width: 10px;
            height: 100%;
            background: #ddd;
        }
        .bar {
            position: absolute;
            top: 50px;
            left: 0;
            width: 100%;
            height: 100px;
            background-color: #000;
        }
    </style>
</head>
<body>
    <div id="wrap">

        <!--滚动条-->
        <div class="scroll">
            <div class="bar"></div>
        </div>
    </div>

    <script>
    


    </script>
</body>
</html>